#include("/views/layout/_layout.html")
#@layout("blog - 首页")
#define main()
<div class="blog-main-left layui-anim layui-anim-fadein" id="blogListDiv">
    #for(blog : blogPage.list)
    <div class="article shadow">
        <div class="article-right">
            <span class="article-title-left">原创</span>
            <div class="triangle-right"></div>
            <h2 class="article-title">
                <a target="_blank" href="#(ctx)/blog/view/#(blog.id)">#(blog.title)</a>
            </h2>
            <div class="article-footer">
                <span><i class="fa fa-clock-o"></i>&nbsp;&nbsp;#(blog.createTime)</span>
                <span><i class="fa fa-tag"></i>&nbsp;&nbsp;<a
                        href="#(ctx)/blog/index?tag=#(blog.tag)">#(blog.tag)</a></span>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    #else
    <div class="article shadow">
        没有更多文章
    </div>
    #end
    <div id="blogListPager">
        <input type="hidden" id="currentPage" value="#(blogPage.pageNumber)">
        <input type="hidden" id="rows" value="#(blogPage.totalRow)">
        <input type="hidden" id="pageSize" value="#(blogPage.pageSize)">
    </div>
</div>
<!--<script type="text/templateList">
    <div class="article shadow">
        <div class="article-right">
            <span class="article-title-left">原创</span>
            <div class="triangle-right"></div>
            <h2 class="article-title">
                <a href="/blog/view/{id}">{title}</a>
            </h2>
            <div class="article-footer">
                <span><i class="fa fa-clock-o"></i>&nbsp;&nbsp;{createTime}</span>
                <span><i class="fa fa-tag"></i>&nbsp;&nbsp;<a href="/blog/byTag/{tag}">{tag}</a></span>
            </div>
        </div>
        <div class="clear"></div>
    </div>
</script>-->
#end

#define right()
#include("/views/layout/_right.html")
#end

#define js()
<script type="text/javascript" src="#(ctx)/static/js/index.js"></script>
#end